//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Vml
{
    internal class Entry : IOfficeXmlSerializable
    {
        private int? _new;
        private int? _old;

        public void ReadXml(ReadContext context)
        {
            using (var c = context.Read("entry"))
            {
                _new = c.GetOptionalInteger("new");
                _old = c.GetOptionalInteger("old");
            }
        }

        public void WriteXml(WriteContext context)
        {
            using (var c = context.Write("entry"))
            {
                c.SetOptionalInteger("new", _new);
                c.SetOptionalInteger("old", _old);
            }
        }
    }
}